package upm.pb4agent.team8;

import upm.pb4agent.team8.Common.PB4Utils;
import jade.core.Agent;
import jade.core.behaviours.SimpleBehaviour;
import jade.wrapper.AgentContainer;
import jade.wrapper.AgentController;

public class AgTeam8 extends Agent
{
	protected void setup()
	{
		addBehaviour(new PlatatformCreation(this));
	}
	
	class PlatatformCreation extends SimpleBehaviour {

		// Variable declaration
		private static final long serialVersionUID = -9025183395021937196L;
		private Agent _agent;
		public PlatatformCreation(Agent agent) 
		{
			super(agent);
			_agent =agent;
		}

		@Override
		public void action() 
		{			
			String managerClass = "upm.pb4agent.team8.Manager";
			String managerNick = "Manager8";			
			PB4Utils.TryCreateAgent(_agent, managerClass, managerNick, null);
		}

		@Override
		public boolean done() {
			return true;
		}
	}
}

